package com.chinairi.mall.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chinairi.common.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsl
 * @since 2020-10-07
 */
@TableName("ORDER_SERVICE_PURCHASE_GOODS")
public class OrderServicePurchaseGoods extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("OSPG_ID")
    private String ospgId;

    /**
     * 采购服务订单编号
     */
    @TableField("OSP_ID")
    private String ospId;

    /**
     * 商品编码
     */
    @TableField("OSPG_GOODS_DBID")
    private String ospgGoodsDbid;

    /**
     * 商品名称
     */
    @TableField("OSPG_GOODS_NAME")
    private String ospgGoodsName;

    /**
     * 采购合同编号
     */
    @TableField("OSPG_CONTRACT_ID")
    private String ospgContractId;

    /**
     * 商品订单编号
     */
    @TableField("OSPG_ORDER_ID")
    private String ospgOrderId;

    /**
     * 供应商名称
     */
    @TableField("OSPG_UCI_NAME")
    private String ospgUciName;

    /**
     * 购买数量
     */
    @TableField("OSPG_GOODS_NUMBER")
    private Float ospgGoodsNumber;

    /**
     * 计量单位
     */
    @TableField("OSPG_GOODS_UNIT")
    private String ospgGoodsUnit;

    /**
     * 单个商品重量
     */
    @TableField("OSPG_GOODS_SINGLE_WEIGHT")
    private Double ospgGoodsSingleWeight;

    /**
     * 商品单价
     */
    @TableField("OSPG_GOODS_PRICE")
    private BigDecimal ospgGoodsPrice;

    /**
     * 采购周期
     */
    @TableField("OSPG_PROCUREMENT_CYCLE")
    private String ospgProcurementCycle;

    /**
     * 到货地址
     */
    @TableField("OSPG_ARRIVAL_ADDRESS")
    private String ospgArrivalAddress;

    /**
     * 到货时间
     */
    @TableField("OSPG_ARRIVAL_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date ospgArrivalTime;

    /**
     * 商品类别
     */
    @TableField("OSPG_GOODS_CLASS")
    private String ospgGoodsClass;

    /**
     * 计价单位
     */
    @TableField("OSPG_VALUATION_UNIT")
    private String ospgValuationUnit;

    /**
     * 计价单价
     */
    @TableField("OSPG_VALUATION_PRICE")
    private BigDecimal ospgValuationPrice;

    /**
     * 商品金额
     */
    @TableField("OSPG_GOODS_MONEY")
    private BigDecimal ospgGoodsMoney;

    /**
     * 商品服务金额
     */
    @TableField("OSPG_GOODS_SERVICE_MONEY")
    private BigDecimal ospgGoodsServiceMoney;

    /**
     * 过程管理
     */
    @TableField("OSPG_PROCESS_MANAGE")
    private String ospgProcessManage;

    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    public String getOspgId() {
        return ospgId;
    }

    public void setOspgId(String ospgId) {
        this.ospgId = ospgId;
    }
    public String getOspId() {
        return ospId;
    }

    public void setOspId(String ospId) {
        this.ospId = ospId;
    }
    public String getOspgGoodsDbid() {
        return ospgGoodsDbid;
    }

    public void setOspgGoodsDbid(String ospgGoodsDbid) {
        this.ospgGoodsDbid = ospgGoodsDbid;
    }
    public String getOspgGoodsName() {
        return ospgGoodsName;
    }

    public void setOspgGoodsName(String ospgGoodsName) {
        this.ospgGoodsName = ospgGoodsName;
    }
    public String getOspgContractId() {
        return ospgContractId;
    }

    public void setOspgContractId(String ospgContractId) {
        this.ospgContractId = ospgContractId;
    }
    public String getOspgOrderId() {
        return ospgOrderId;
    }

    public void setOspgOrderId(String ospgOrderId) {
        this.ospgOrderId = ospgOrderId;
    }
    public String getOspgUciName() {
        return ospgUciName;
    }

    public void setOspgUciName(String ospgUciName) {
        this.ospgUciName = ospgUciName;
    }
    public Float getOspgGoodsNumber() {
        return ospgGoodsNumber;
    }

    public void setOspgGoodsNumber(Float ospgGoodsNumber) {
        this.ospgGoodsNumber = ospgGoodsNumber;
    }
    public String getOspgGoodsUnit() {
        return ospgGoodsUnit;
    }

    public void setOspgGoodsUnit(String ospgGoodsUnit) {
        this.ospgGoodsUnit = ospgGoodsUnit;
    }
    public Double getOspgGoodsSingleWeight() {
        return ospgGoodsSingleWeight;
    }

    public void setOspgGoodsSingleWeight(Double ospgGoodsSingleWeight) {
        this.ospgGoodsSingleWeight = ospgGoodsSingleWeight;
    }
    public BigDecimal getOspgGoodsPrice() {
        return ospgGoodsPrice;
    }

    public void setOspgGoodsPrice(BigDecimal ospgGoodsPrice) {
        this.ospgGoodsPrice = ospgGoodsPrice;
    }
    public String getOspgProcurementCycle() {
        return ospgProcurementCycle;
    }

    public void setOspgProcurementCycle(String ospgProcurementCycle) {
        this.ospgProcurementCycle = ospgProcurementCycle;
    }
    public String getOspgArrivalAddress() {
        return ospgArrivalAddress;
    }

    public void setOspgArrivalAddress(String ospgArrivalAddress) {
        this.ospgArrivalAddress = ospgArrivalAddress;
    }
    public Date getOspgArrivalTime() {
        return ospgArrivalTime;
    }

    public void setOspgArrivalTime(Date ospgArrivalTime) {
        this.ospgArrivalTime = ospgArrivalTime;
    }
    public String getOspgGoodsClass() {
        return ospgGoodsClass;
    }

    public void setOspgGoodsClass(String ospgGoodsClass) {
        this.ospgGoodsClass = ospgGoodsClass;
    }
    public String getOspgValuationUnit() {
        return ospgValuationUnit;
    }

    public void setOspgValuationUnit(String ospgValuationUnit) {
        this.ospgValuationUnit = ospgValuationUnit;
    }
    public BigDecimal getOspgValuationPrice() {
        return ospgValuationPrice;
    }

    public void setOspgValuationPrice(BigDecimal ospgValuationPrice) {
        this.ospgValuationPrice = ospgValuationPrice;
    }
    public BigDecimal getOspgGoodsMoney() {
        return ospgGoodsMoney;
    }

    public void setOspgGoodsMoney(BigDecimal ospgGoodsMoney) {
        this.ospgGoodsMoney = ospgGoodsMoney;
    }
    public BigDecimal getOspgGoodsServiceMoney() {
        return ospgGoodsServiceMoney;
    }

    public void setOspgGoodsServiceMoney(BigDecimal ospgGoodsServiceMoney) {
        this.ospgGoodsServiceMoney = ospgGoodsServiceMoney;
    }
    public String getOspgProcessManage() {
        return ospgProcessManage;
    }

    public void setOspgProcessManage(String ospgProcessManage) {
        this.ospgProcessManage = ospgProcessManage;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "OrderServicePurchaseGoods{" +
            "ospgId=" + ospgId +
            ", ospId=" + ospId +
            ", ospgGoodsDbid=" + ospgGoodsDbid +
            ", ospgGoodsName=" + ospgGoodsName +
            ", ospgContractId=" + ospgContractId +
            ", ospgOrderId=" + ospgOrderId +
            ", ospgUciName=" + ospgUciName +
            ", ospgGoodsNumber=" + ospgGoodsNumber +
            ", ospgGoodsUnit=" + ospgGoodsUnit +
            ", ospgGoodsSingleWeight=" + ospgGoodsSingleWeight +
            ", ospgGoodsPrice=" + ospgGoodsPrice +
            ", ospgProcurementCycle=" + ospgProcurementCycle +
            ", ospgArrivalAddress=" + ospgArrivalAddress +
            ", ospgArrivalTime=" + ospgArrivalTime +
            ", ospgGoodsClass=" + ospgGoodsClass +
            ", ospgValuationUnit=" + ospgValuationUnit +
            ", ospgValuationPrice=" + ospgValuationPrice +
            ", ospgGoodsMoney=" + ospgGoodsMoney +
            ", ospgGoodsServiceMoney=" + ospgGoodsServiceMoney +
            ", ospgProcessManage=" + ospgProcessManage +
            ", createUser=" + createUser +
            ", createTime=" + createTime +
        "}";
    }
}
